import 'package:flutter/material.dart';
import 'package:skeletons/skeletons.dart';

import '../../config/app.dart';

class CustomSkeleton extends StatelessWidget {
  Widget child;
  CustomSkeleton({
    Key? key,
    required this.child,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return SkeletonTheme(
      child: child,
      shimmerGradient: App.SHIMMER_GRADIENT,
    );
  }
}
